import {NgModule} from '@angular/core';
// import { BrowserModule } from '@angular/platform-browser';
import {AuthGuard} from "@core/guards/AuthGuard";
import {MyDiskComponent} from "./my-disk/my-disk.component";
import {MyDiskGuard} from "@core/guards/MyDiskGuard";
import {FormsModule} from "@angular/forms";
import {CommonModule} from "@angular/common";
import {NzMenuModule} from "ng-zorro-antd/menu";
import {NzDropDownModule} from "ng-zorro-antd/dropdown";
import {NzDividerModule} from "ng-zorro-antd/divider";
import {NzMessageService} from "ng-zorro-antd/message";
import {NzTableModule} from "ng-zorro-antd/table";
import {NzLayoutModule} from "ng-zorro-antd/layout";
import {NzBreadCrumbModule} from "ng-zorro-antd/breadcrumb";
import {NzButtonModule} from "ng-zorro-antd/button";
import {NzIconModule} from "ng-zorro-antd/icon";
import {NzPageHeaderModule} from "ng-zorro-antd/page-header";
import {NzDescriptionsModule} from "ng-zorro-antd/descriptions";
import {NzModalModule, NzModalService} from "ng-zorro-antd/modal";
import {PermissionCard} from "@/app/pages/disk/file-list/permission-card/permission-card";
import {NzTabsModule} from "ng-zorro-antd/tabs";
import {NzCheckboxModule} from "ng-zorro-antd/checkbox";
import {NzSwitchModule} from "ng-zorro-antd/switch";
import {PermissionCaredBody} from "@/app/pages/disk/file-list/permission-card/permission-cared-body";
import {NzSelectModule} from "ng-zorro-antd/select";
import {NzTagModule} from "ng-zorro-antd/tag";
import {MkdirDialogContent} from "@/app/pages/disk/file-list/file-options/mkdir-dialog-content";
import {NzInputModule} from "ng-zorro-antd/input";
import {EditPermissionDialogContent} from "@/app/pages/disk/file-list/file-options/edit-permission-dialog-content";
import {NzAlertModule} from "ng-zorro-antd/alert";
import {NzSpinModule} from "ng-zorro-antd/spin";
import {FileInfoComponent} from './file-list/file-info/file-info.component';
import {NzGridModule} from "ng-zorro-antd/grid";
import {TextEditorComponent} from './file-list/text-editor/text-editor.component';
import {FileListComponent} from "@/app/pages/disk/file-list/file-list.component";
import {ShareDiskComponent} from "@/app/pages/disk/share-disk/share-disk.component";
import {VideoPageComponent} from "@/app/pages/disk/file/video-page/video-page.component";
import {NzListModule} from "ng-zorro-antd/list";
import {NzProgressModule} from "ng-zorro-antd/progress";
import {RouterModule} from "@angular/router";
import {BBYCommonModule} from "@/app/pages/common/bby.common.module";
import {UploadComponent} from "@/app/pages/disk/file/upload/upload.component";
import {NzFormModule} from "ng-zorro-antd/form";
import {NzEmptyModule} from "ng-zorro-antd/empty";
import {NzPipesModule} from "ng-zorro-antd/pipes";
import {NzCardModule} from "ng-zorro-antd/card";
import {NzAvatarModule} from "ng-zorro-antd/avatar";
import {ScrollingModule} from "@angular/cdk/scrolling";
import {NzRadioModule} from "ng-zorro-antd/radio";
import { UserListComponent } from './share-disk/user-list/user-list.component';
import { SearchFileListComponent } from './share-disk/search-file-list/search-file-list.component';
import { UserDiskComponent } from './share-disk/user-disk/user-disk.component';
import {NzPaginationModule} from "ng-zorro-antd/pagination";
import { ClassificationComponent } from './classification/classification.component';
import {PermissionRequest} from "@/app/pages/disk/file-list/file-options/permission-request";
import {AddFavoriteDialog} from "@/app/pages/disk/file/add-favorite-dialog";
import {NzPopoverModule} from "ng-zorro-antd/popover";
import {OfflineDialog} from "@/app/pages/disk/offline-dialog";
import {NzTypographyModule} from "ng-zorro-antd/typography";

@NgModule({
  declarations: [
    MyDiskComponent,
    MkdirDialogContent,
    PermissionCard,
    EditPermissionDialogContent,
    PermissionCaredBody,
    FileInfoComponent,
    FileListComponent,
    TextEditorComponent,
    ShareDiskComponent,
    VideoPageComponent,
    UploadComponent,
    UserListComponent,
    SearchFileListComponent,
    UserDiskComponent,
    ClassificationComponent,
    PermissionRequest,
    AddFavoriteDialog,
    OfflineDialog
  ],
  imports: [
    CommonModule,
    FormsModule,
    NzMenuModule,
    NzDropDownModule,
    NzDividerModule,
    NzTableModule,
    NzLayoutModule,
    NzBreadCrumbModule,
    NzButtonModule,
    NzIconModule,
    NzPageHeaderModule,
    NzDescriptionsModule,
    NzModalModule,
    NzTabsModule,
    NzCheckboxModule,
    NzSwitchModule,
    NzSelectModule,
    NzTagModule,
    NzInputModule,
    NzAlertModule,
    NzSpinModule,
    NzGridModule,
    NzListModule,
    NzProgressModule,
    RouterModule,
    BBYCommonModule,
    NzFormModule,
    NzEmptyModule,
    NzPipesModule,
    NzCardModule,
    NzAvatarModule,
    ScrollingModule,
    NzRadioModule,
    NzPaginationModule,
    NzPopoverModule,
    NzTypographyModule
  ],
  exports: [
    UploadComponent
  ],
  providers: [
    AuthGuard, MyDiskGuard, NzMessageService, NzModalService//,MyDiskPageData
    // {provide:LocationStrategy,useClass:HashLocationStrategy}
  ]
})
export class DiskModule {
}
